package com.kurumi.query;

import com.kurumi.util.StringUtil;

public class InPatientMedicalRecordItem{

	private String queryCode;
	
	private String queryCondition;
	
	private String queryValue;
	
	private String queryCombination;

	public String getQueryCode() {
		return StringUtil.empty(queryCode);
	}

	public void setQueryCode(String queryCode) {
		this.queryCode = queryCode;
	}

	public String getQueryCondition() {
		return StringUtil.empty(queryCondition);
	}

	public void setQueryCondition(String queryCondition) {
		this.queryCondition = queryCondition;
	}

	public String getQueryValue() {
		return StringUtil.empty(queryValue);
	}

	public void setQueryValue(String queryValue) {
		this.queryValue = queryValue;
	}
	
	
	
	public String getQueryCombination() {
		return StringUtil.empty(queryCombination);
	}

	public void setQueryCombination(String queryCombination) {
		this.queryCombination = queryCombination;
	}

	public boolean isEmpty(){
		if(this.getQueryCode() !=null && this.getQueryCondition() != null
				&& this.getQueryValue() != null && this.getQueryCombination() != null){
			return false;
		}
		return true;
	}
	
}
